﻿#include <iostream>
#include "Trie.h"

int main_TrieTree()
{
    const char* strs[] = {"abc", "def", "adf", "dej",};
    Trie* trie = new Trie();
    for (auto& str : strs) {
        trie->insert(str);
    }

    printf("%d", trie->search("abc"));
    releaseTrieTree(trie->root);
    return 0;
}